<?PHP
defined('_XR_EXEC') or die();
/**
 * 控制器处理类 系统
 */
class system_Controller extends controller{
	function __construct(){
		parent::__construct();
	}
	function info__(){
		//debug::show($_SESSION);
		
	}
	/* 验证码,生成，并且放入session */
	function seccode__(){
		if(!isset($_REQUEST['seccodename'])) $_REQUEST['seccodename'] = 'default';
		@header("Expires: -1");
		@header("Cache-Control: no-store, private, post-check=0, pre-check=0, max-age=0", FALSE);
		@header("Pragma: no-cache");
		factory::load('lib#seccode#seccode');
		$code = new seccode();
		$sec_num = rand(100000, 999999);
		$sec_real = $sec_num;
		$code->seccodeconvert($sec_real);
		//debug::show($sec_num,$sec_real);
		func::setSecCode($_REQUEST['seccodename'],$sec_real);
	//	debug::show($_SESSION,XR_ENGINE_LIB);
		$code->code = $sec_num;
		$code->type = 0;
		$code->width = 70;
		$code->height = 21;
		$code->background = 0;
		$code->adulterate = 1;
		$code->ttf = 1;
		$code->angle = 0;
		$code->color = 1;
		$code->size = 0;
		$code->shadow = 1;
		$code->animator = 0;
		$code->fontpath = XR_ENGINE_LIB.'seccode/images/fonts/';
		$code->datapath = XR_ENGINE_LIB.'seccode/images/';
		$code->includepath = '';
		$code->display();
		exit();
	}
	
 
	
	
}
?>